Skip to content

Yeonghun week5 hw#27

Open
Yeonghunj wants to merge 2 commits intomainfrom
yeonghun-week5-hw
Open

Yeonghun week5 hw#27
Yeonghunj wants to merge 2 commits intomainfrom
yeonghun-week5-hw

Conversation

@Yeonghunj
Copy link

💎 과제 구현 설명

과제를 위해 사용했던 함수, 수정한 파일 등 구현 내용에 대한 간단한 설명을 작성해 주세요.

🏁 PR 체크리스트

  • [ o] 코드가 오류 없이 정상적으로 실행되나요?
  • [ o] 커밋 메시지 컨벤션(템플릿 활용)을 준수했나요?
  • [ o] 과제 마감기한을 준수했나요?

🖼️ Screenshot / Video

🙌 Issue

과제 수행 중 어려웠던 부분이나 궁금했던 점을 자유롭게 작성해 주세요.

@Yeonghunj Yeonghunj self-assigned this Apr 8, 2024
Copy link

@hoooooojjjj hoooooojjjj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

굳굳 잘했습니다~

Copy link
Contributor

@cheeze-hyeon cheeze-hyeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 과제하느라 수고하셨습니다! 😸 그런데 지금 main <- yeonghun-week5-hw 로 PR 타겟이 설정되어 있는데 **yeonghun-week5** <- yeonghun-week5-hw 로 바꾸고 merge 해주셔야 해요!!

Comment on lines +52 to +59
key={comment.id}
id={comment.id}
content={comment.content}
createdAt={comment.created_at}
postId={comment.post}
author={comment.author}
handleCommentDelete={handleCommentDelete}
handleCommentEdit={handleCommentEdit}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
key={comment.id}
id={comment.id}
content={comment.content}
createdAt={comment.created_at}
postId={comment.post}
author={comment.author}
handleCommentDelete={handleCommentDelete}
handleCommentEdit={handleCommentEdit}
comment={comment}
handleCommentDelete={handleCommentDelete}
handleCommentEdit={handleCommentEdit}

작성해준 방식으로 props를 넘겨줄 수도 있지만 comment 객체를 넘겨주는 건 어떨까요? 일일이 props를 적기에도 번거롭고 CommentElement에서 지금 모든 props를 활용하고 있지 않으니까 comment 자체를 넘겨주고 CommentElement에서 필요한 내용을 디스트럭처링 할당으로 활용하는 것도 좋을 것 같아요!

@@ -1,21 +1,39 @@
import { useState, useEffect } from "react";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

과제 PR에는 과제 내용만 담기도록 해주세요! 세미나에서 했던 코드 작성 내용은 이름 브랜치에 푸쉬해두고 과제 브랜치로 바꿔서 과제 코드 작성하시면 됩니당~

@jsh6269
Copy link

jsh6269 commented Apr 13, 2024

LGTM 수고했어용

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants